const odooModelName = 'hr.department'

const fields_default = {
  child_ids: { name: null, manager_id: null },
  member_ids: { name: null }
}

const detail_columns = [
  'name',
  'company_id__name',
  'parent_id__name',
  'manager_id__name',
  'child_ids__count',
  'member_ids__count',
  'jobs_ids__count'
]

const child_configs = {
  child_ids: {
    columns: ['name', 'manager_id__name'],
    formItems: ['name', 'manager_id']
  },
  member_ids: {
    columns: ['name'],
    formItems: ['name']
  }
}

const formItems = ['name', 'parent_id', 'manager_id']

const Model = {
  name: odooModelName,
  configs: {
    fields_default,
    detail_columns,
    child_configs,
    formItems
  }
}

export default Model
